package com.saturn.titan.core.repository.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.saturn.titan.core.bean.BusiWorkBill;
import com.saturn.titan.core.dto.AppWorkBillDto;
import com.saturn.titan.core.dto.WorkBillDto;
import com.saturn.titan.core.repository.mybatis.annotations.GenerateDao;
import com.saturn.titan.core.repository.mybatis.annotations.MyBatisRepository;
import com.saturn.titan.core.repository.mybatis.base.BaseDao;

/**
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * 
 * @author lwh
 */
@MyBatisRepository
@GenerateDao(beanType = BusiWorkBill.class)
public interface BusiWorkBillDao extends BaseDao<BusiWorkBill>{
	
	/**
	 * 根据员工id，查询该员工的待办工单
	 * @param empId
	 * @return
	 */
	public List<AppWorkBillDto> getNoExecWorkBill(@Param(value="empId")Long empId);
	
	/**
	 * 查询已获取的工单
	 * @param empId
	 * @return
	 */
	public List<AppWorkBillDto> getReciveWorkBill(@Param(value="empId")Long empId);
	
	public List<WorkBillDto> getAllWorkBillInfo(
			@Param(value="customerPhone") String customerPhone,
			@Param(value="billStt") String billStt ,
			@Param(value="requestType") String requestType,
			@Param(value="emergentType") String emergentType
			);
	
	public List<BusiWorkBill> getAllWorkBill();
}
